import request from "../utils/request.js"

  // 商品出库
  export function getgoods(data) {
    return request({
      url: '/api/smartScreen/addOrUpdateItemShipmentOrderAndDetail',
      method: 'post',
      data: data
    })
  }

  // 登录token
  export function gettoken(data) {
    return request({
      url: '/login',
      method: 'post',
      data: data
    })
  }

  // 上传base64
  export function getphoid(query) {
    return request({
      url: '/wms/common/uploadImgByBASE64',
      method: 'post',
      params:query
    })
  }

  // 扫描枪查物品
  export function getgoodsInfo(params) {
    return request({
      url: '/api/smartScreen/getItemById',
      method: 'post',
      params: params
    })
  }

